package com.bd.scm.module.timeInterval.controller;

import com.bd.scm.domain.dto.timeInterval.TimeIntervalDto;
import com.bd.scm.module.utils.ResultUtil;
import com.bd.utils.vo.Result;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.bd.scm.module.timeInterval.service.TimeIntervalService;

import javax.annotation.Resource;

/**
 * 排班时段控制器
 * Created with IntelliJ IDEA.
 * User: _Cps
 * Date: 2019.12.21 11:11
 */
@RestController
@RequestMapping("api/timeInterval")
public class TimeIntervalController {

    @Resource
    private TimeIntervalService timeIntervalService;

    @RequestMapping("getTimeIntervalListByParent")
    public Result getTimeIntervalListByParent(@RequestBody TimeIntervalDto timeIntervalDto){
        return ResultUtil.ok(timeIntervalService.getTimeIntervalListByParent(timeIntervalDto));
    }

}
